package com.smedi.ismedi.notification.core.domain.aggregatemodel;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * @className: MailLog
 * @Description: TODO
 * @version: v1.0.0
 * @author: wzx
 * @date: 2022/11/23 15:03
 */

@Data
@Accessors(chain = true)
public class MailLog {

    private Long id;

    private String batchId;

    private String messageContent;

    private String mailNum;

    private Long templateId;

    private boolean succeed;

    private String errorMessage;

    private Long createdUserId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
    private LocalDateTime createdDate;

    private String topOrgId;

    private String tenantId;

}